package cn.fzkj.gulimall.product.web;

import cn.fzkj.gulimall.product.service.SkuInfoService;
import cn.fzkj.gulimall.product.vo.SkuItemVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @DESCRIPTION 商品详情
 * @Author yaya
 * @DATE 2022/8/7
 */
@Controller
public class ItemController {

    @Autowired
    private SkuInfoService skuInfoService;

    @RequestMapping(value = "/{skuId}.html")
    public String skuItem(@PathVariable("skuId") Long skuId) {

        SkuItemVo vo = skuInfoService.item(skuId);

        return "item";
    }

}
